<?php 
class dv_company_name_model extends CI_Model {
        function __construct()
        {
                parent::__construct();        
                $this->load->helper("local");
                $this->load->helper('date');
                $this->load->database();
        } 
//START-----------------dv-------------------------//              
        
		
		function get_all_dv_company_name()
        {
			    $this->load->database();
                $query = $this->db->query("select * from dvcompanyname where dv_co_n_id order by dv_company_name DESC");
			return $query->result();
        }

		
        function getdv_company_name_info($code)
        {        
                $query = $this->db->query("select *from dvcompanyname where dv_co_n_id='$code'");
                 //return $query->result();
				 return $query->row();

				 
        }

//End-----------------dv -------------------------//              		

}
?>
